{{ template "layout.html" . }}

{{define "title"}}
    <title>域名编辑页</title>
{{end}}
{{define "main_body"}}
   <div class="main_body" id="main_body">
        <div class="breadcrub">
            当前位置：域名管理>编辑域名
        </div>
        <div class="pannel">
            <form name = logon method="POST" enctype="multipart/form-data">
            <h3 class="review_title">编辑域名</h3>
            <div class="form_group">
                <label>域名标题：</label>
                <input type="text" class="input_txt2" name = "articleName" value={{.article.Title}}>
            </div>
            <div class="form_group">
                <label>域名内容：</label>
                <textarea class="input_multxt" name="content">{{.article.Content}}</textarea>
            </div>
            <div class="form_group">
                <label>上传文件：</label>
                <img src="{{.article.Img}}"  style="max-height:40px;max-width: 40px">
                <input name="oldimagepath" value="{{.article.Img}}" type="hidden">
                <input type="file" name="uploadname" class="input_file">
            </div>
            <div class="form_group indent_group line_top">
                <input type="submit" value="添 加" class="confirm">
                <span>{{.errmsg}}</span>
            </div>
        </form>

        </div>

    </div>
{{end}}